home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
util3
/
hdoff133.lha
/
HDOff.doc
< prev
next >
Wrap
PGP Signed Message
|
1996-01-07
|
7KB
|
188 lines
-----BEGIN PGP SIGNED MESSAGE-----
NAME
HDOff -- a program for the A600/A1200 and A4000 to stop the HD
motor.
SYNOPSIS
HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S
SET1200/S,SET4000/S
DESCRIPTION
HDOff is a program like NoiseSaver for the A1200 and A4000. It
stops the HD motor x minutes after the last access.
TIME, TIME2 : Time for the 1st and 2nd HD
FORCE : Forces HDOff to quit. Normaly HDOff wouldn`t quit if an
other programm (like cachesoft etc) patched the
scsi.device after HDOff. But if you are using
SetFuncManager (or something like this), HDOff can
nevertheless quit without danger. ONLY USE THIS OPTION
IF YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE IT!
OTHER, OTHER2 :
This option makes HDOff to use an other command ($94
instead of $E0) to stop the HD motor. If also your HD
won`t spin down, use this option. Some drives, especially
old ones, don`t support the spindowncommand (all newer
drives should support it).
NOW, NOW2 :
The selected HD spins immediately down, after this the
program runs normal (usefull for seldom-used HD`s).
SET1200, SET4000:
With some odd HD`s, HDOff wasn`t able to detect wich
controller is present in the Amiga. If you start HDOff
and get a "Incorrect HD controller!" but are using
A600/A1200/A4000, use the option SET1200 for an A600/A1200
or SET4000 for an A4000.
NOTE
Don`t adjust the "time" value too low (maximum are 65535 minutes
:) ! Your HD will thank you! (60 mins is a good value to choose).
You don`t need to start HDOff with run.
To quit simply restart HDOff.
If a requester with the message "Someone else has patched
scsi.device!..." pops up, someone else (f.e. caching software)
has latched into the scsi.device. For security reasons HDOff
cannot be terminated.
This program is 100% written in assembler (DevPac 3.14) and (as
far as its possible) systemconform.
EXAMPLES
1. HDOff 30
Stops the motor of the 1st HD 30 minutes after the last access.
2. HDOff 30 15 OTHER2
Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
15 minutes after the last access. For the 2nd HD the other
command will be used to stop the motor
3. HDOff T2=20
Stops the motor of the 2nd HD 30 minutes after the last access.
4. HDOff 30 15 NOW2
Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
directly. If (by an access) the 2nd HD spins up, the next spin
down is again in 15 mins.
TECHNICAL
How does it work? The essential things are:
1. Test if ide controller is present (if not: quit)
2. Patching of the scsi.device (of cause with SetFunction). The
patch signals HD accesses to the MainTask.
3. Count the timeloop down and reinit it if an signal from the
patch occures.
4. If timecounter 0: Signal the patch to delay all commands (for
both drives) till the signal is "retract". Security delay 1 sek.
Forbid(), Wait_IDE_unbusy, select the drive (master/slave),
Wait_IDE_unbusy, spin down HD, Permit. "Retract" the signal for
the patch for the HD that was not stopped, for the other one after
5 seks security delay (spin up is done by the HD itself).
5. Check, if there is any message and process it.
6. Repeat step 3-4 till abort.
For more information about the messageport have a look in
Developers.doc!
DISCLAIMER
This prg is a hack! It was only programmed for the A1200, A600
and A4000 with IDE HD`s! Use it at your own risk!
COPYRIGHT
This prg is Freeware. You may copy it, but you must not change
anything! No commercial using without my permission!
AUTHOR
Gideon Zenz
Giersbergstr. 41
53229 Bonn
GERMANY
EMail: gzenz@ernie.mi.uni-koeln.de
Marvin@BigBen.dssd.sub.org (only within Germany)
(^^ NOTE! CHANGED!)
News about HDOff at: http://ernie.mi.uni-koeln.de/~gzenz/hdoff.html
-Gideon Zenz, 7-Jan-96
BUGS
Non known.
HISTORY
v1.0: (08-Mai-94)
- Initial release
v1.1: (30-Jan-95)
- Timerloop in minutes and much more precisely
- No need to start with run any more
- At all more secure and more systemconform
- A4000 support
v1.2: (20-Apr-95)
- docs completely rewritten
- Support of 2nd HD`s
- New args OTHER and OTHER2 and NOW and NOW2
v1.33: (7-Jan-96)
- HDOff crashed if started on heavy diskaccess.
- new options SET1200 and SET4000
- Implementation of the onlineport. Have a look in
Developers.doc for usage.
THANKS
Many thanks to heureka@bigben.dssd.sub.org and
M.ZIELINSKI@amtrash.comlink.de for their helps on A4000 & 2nd HD
Support!
SECURITY
If you want to be shure you have the original programms, check
with "md5sum -c HDOff.doc". (You get md5sum f.e. from the
PGP-archive)
482db34306a704eb8f85a43f81e7f5ca *HDOff
0e5b3f361c0cc601564c83bcb63650d1 Developers.doc
- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2i
mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
tChHaWRlb24gWmVueiA8TWFydmluQEJpZ0Jlbi5kc3NkLnN1Yi5vcmc+iQCVAwUQ
MKAFYEBgnhXGkfElAQHfNgQApPTXMFip0cg2goWRCy/0v6EeVyDCnFiHu0WKk7ge
HkHz2S1esiF87KedcNPmWhn75ZknXaGFzWkX/Qnxdh5Pk3AyTdzDURnu1WBN2lnL
huXbmCK08j3rBtvLq0rZg2L8Dvpf/rjTSB86UXf47MgR+Wow5vltwvL1NEI1GACY
Bpm0JkdpZGVvbiBaZW56IDxNYXJ2aW5AQklHQkVOLnd3Yi5zdWIuZGU+iQCVAgUQ
Lunxnys4JdI2NDr5AQFsNQQAjjpOR+crQZY8RXviWGuJ6K806bh9mCIOYXmfmaJl
i2aEI2qpbLaN+K394usK0cynleGVFCkOfAa+J3PQTIOPSTB+8p2mcAN2JuZWR85e
UE6JKyRU96D8c36CNgKxytelDuD4JAwA6gG/CiqiECr59gnaaGwrkpL6h+iMBQcY
bwy0Mk5PVEU6IE1hcnZpbkBCSUdCRU4ud3diLnN1Yi5kZSBub3QgdmFsaWQgYW55
IG1vcmUhtBVHaWRlb24gWmVueiAyOjI0NDAvOTk=
=NZ+T
- -----END PGP PUBLIC KEY BLOCK-----
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i
iQCVAwUBMPAUIUBgnhXGkfElAQGBbwQAnUZnBIt29hvRYmEOc3+Klq3bwLDO7EJl
n/vT5jVAEK+MSCrNhWDsw9K1X6LVEiDNg1pnZRjyimP99yfUCHxduWHdUXrOg29+
a2VtBHc92O5IuYdDs8JQpw2TAg5fln8CJDu/Raycox2JnPcZXWBT/gwIoqWKLb/9
lzPqXURVIe4=
=l+5P
-----END PGP SIGNATURE-----